package com.zsc.shixun.model.usermanage;

import com.zsc.shixun.entity.User;
import org.mapstruct.Mapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author ZWYZY
 * @since 2020/6/18
 */
@Service
@Mapper(componentModel = "spring")
public interface UserMapping {
    /**
     * @param user
     * @return
     */
    UserManageVO entityToVo(User user);

    /**
     * @param userList
     * @return
     */
    List<UserManageVO> entitysToVos(List<User> userList);
}
